const mysql = require('mysql');

var con = mysql.createConnection({
    host:"localhost",
    port:3306,
    user:"root",
    password:"dwx123.",
    database:"dwx"
})

var userName = process.argv[2];

var deleteSql = "delete from user where userName=?";
con.query(deleteSql,[userName],(err,result)=>{
    if(err){
        console.log(err);
    }else{
        console.log(result);
    }
})